<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.w3.org/1999/xhtml">
<head>
    <meta charset="UTF-8">
    <title th:text="${title}">主页</title>
</head>
<body>
<div>
    <!--   LocaleChangeInterceptor lci = new LocaleChangeInterceptor();
        lci.setParamName("lang");
        lang 需要和这里一致-->
    <a class="dropdown-item" th:href="@{/locale(lang=zh_CN)}"
       th:text="#{text.language.chinese}">中文</a>
    <a class="dropdown-item" th:href="@{/locale(lang=en_US)}"
       th:text="#{text.language.english}">英语</a>
</div>
<div>
    <span th:text="#{text.home}">首页</span>
    <span th:text="#{text.home.message}">你好，欢迎你</span>
</div>
</body>
</html>